<?php

include_once('_path.php');
include_once("../includes/init.php");

$request_ids = $_REQUEST['request_ids'];

if(!is_array($request_ids)){
	$request_ids = array();
	$request_ids[0] = $_REQUEST['request_id'];
}

foreach ($request_ids as $request_id) {
	if(is_numeric($request_id)){
		$quote['request_id'] = string_sql($request_id);
		$database->execute("DELETE FROM admin_log WHERE id = ".$quote['request_id'].";");
    }
}
add_log('do_delete', 'logs');
$_REQUEST['referrer'] = "index.php";
redirect("Delete");
?>